/*
 * Copyright (c) 2020 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.afollestad.materialdialogs.utils;

public class Const {
    /**
     * Constant for one minute
     */
    private static final long MINUTE = 60 * 1000L;

    /**
     * Constant for default auto update time
     */
    public static final long DEFAULT_AUTO_UPDATE = MINUTE * 60L;

    /**
     * Refresh weather timeout
     */
    public static final long REFRESH_TIMEOUT = 16000L;

    /**
     * Database name
     */
    public static final String DATABASE_NAME = "weather.db";

    /**
     * Success code
     */
    public static final String EMPTY = "";

    /**
     * Success code
     */
    public static final String SUCCESS = "0";

    /**
     * Default string builder size
     */
    public static final int STRING_BUILDER_LENGTH = 1024;

    /**
     * Default error code
     */
    public static final int DEFAULT_ERROR = -1;

    /**
     * Default error code
     */
    public static final String UTF_8 = "UTF-8";

    /**
     * Coefficient for conversion
     */
    public static final long COEFFICIENT = 1000L;

    /**
     * Coefficient for conversion
     */
    public static final int ONE_THOUSAND = 1000;

    /**
     * Max temperature
     */
    public static final int MAX_TEMPERATURE = 212;

    /**
     * Min temperature
     */
    public static final int MIN_TEMPERATURE = -212;

    /**
     * Coordinates precision
     */
    public static final int LOCATION_PRECISION = 3;

    /**
     * flag for clear top
     */
    public static final int FLAG_ACTIVITY_CLEAR_TOP = 0x04000000;

    /**
     * flag for exclude from recents
     */
    public static final int FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS = 0x00800000;

    /**
     * Celsius temperature unit
     */
    public static final String CELSIUS = "celsius";

    /**
     * Fahrenheit temperature unit
     */
    public static final String FAHRENHEIT = "fahrenheit";

    /**
     * Temperature unit key in Settings.System
     */
    public static final String TEMPERATURE_UNIT = "weather_temperature_unit";

    /**
     * key to set in intent
     */
    public static final String SOURCE_KEY = "source";

    /**
     * indicate jump from watchface
     */
    public static final String SOURCE_WATCH_FACE = "watchface";

    /**
     * indicate jump from hiboard
     */
    public static final String SOURCE_HIBOARD = "minusone";

    /**
     * the half value
     */
    static final float FLOAT_HALF = 0.5f;

    /**
     * To check the Basic Long content test case
     */
    public static final int LONG_CONTENT_LENGTH = 500;

    /**
     * To set the Basic Long content test case height
     */
    public static final int LONG_CONTENT_HEIGHT = 1200;

    /**
     * To set the Basic Long content test case height horizontal
     */
    public static final int LONG_CONTENT_HEIGHT_HOROZONTAL = 400;


    private Const() {
    }
}

